package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.UserMsgDO;
import com.maybach.common.query.UserMsgQuery;

import java.util.List;


/**
 * Manager for UserMsg.
 */
public interface UserMsgManager {
    /**
     * query count by query condition.
     */
    int countByQuery(UserMsgQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(UserMsgQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(UserMsgDO record);

    /**
     * insert selective.
     */
    long insertSelective(UserMsgDO record);

    /**
     * select by query condition.
     */
    List<UserMsgDO> selectByQuery(UserMsgQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<UserMsgDO> selectByQueryWithPage(UserMsgQuery query);

    /**
     * select by primary key.
     */
    UserMsgDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( UserMsgDO record,  UserMsgQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(UserMsgDO record, UserMsgQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(UserMsgDO record);
}